<%
user=profile.user
-%>

<ul id="user_details">
  <% if user -%>
    <li>User ID:<%= user.id %></li>
  <% else -%>
      <span class='none_text'>No associated user</span>
  <% end -%>
  <li class="profile">

    <%= link_to h(profile.name),profile %>

  </li>
</ul>